package com.ssm.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.ssm.mapper.UserMapper;
import com.ssm.model.User;
/**
 * DAO实现类
 */
@Component
public class UserDaoImpl implements UserDao{
    @Autowired
	private UserMapper userMapper;
    public User findUserByName(String name) {
		User user = userMapper.selectUserByName(name);
		 return user; 
	}
	
}
